package cn.itcast.fiction.dao;

import java.util.ArrayList;

import cn.incast.fiction.domain.Fictionltem;
import cn.itcast.fiction.data.DataBase;

public class AdminDao {
	public ArrayList<Fictionltem> queryAllData() {
		return DataBase.data;
	}
	public void addFictionItem(Fictionltem fictionItem) {
		DataBase.data.add(fictionItem);
	}
	public void delFictionItem(String delNumber) {
		for (int i = 0;i < DataBase.data.size();i++) {
			Fictionltem thisFictionItem = DataBase.data.get(i);
			if(thisFictionItem.getNumber().equals(delNumber)) {
				
			}
		}
	}
}


